# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test01
# Description:   例11.1
# Author:       ASUS
# Date:         2019/3/25
#-------------------------------------------------------------------------------


import re
m = re.match("hello","hello")
if m is not None:
    print(m.group())
print(m.__class__.__name__)

m = re.match("hello","world")
if m is not None:
    print(m.group())
print(m)

m = re.match("hello","hello world")
if m is not None:
    print(m.group())
print(m)



